package com.br.semperparata.pag_fbb_rj.gui;

import java.awt.Dimension;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.UIManager;

/**
 * 
 * @author Thomas Lohaus
 *
 */
public class PAG extends JFrame {
	private static final long serialVersionUID = 1L;

	public PAG() {
		initFrame();
		AtividadePanel atividade = new AtividadePanel();
		this.getContentPane().add(atividade);
		
		this.revalidate();
	}
	
	
	public void initFrame() {
		this.setTitle("FBB-RJ - PAG");
		Image icon = Toolkit.getDefaultToolkit().getImage("resources/icons/fbb.jpg");
		this.setIconImage(icon);
		
//		this.setExtendedState(JFrame.MAXIMIZED_BOTH);
		this.setMinimumSize(new Dimension(1000, 700));
		
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
			e.printStackTrace();
		}
		this.setVisible(true);
	}
}
